<template>
  <div id="app">
    <!-- 根据路由元数据决定是否显示导航栏 -->
    <NavigationBar v-if="!$route.meta.hideNavbar" />
    <router-view />
  </div>
</template>

<script>
import NavigationBar from "./components/NavigationBar.vue";

export default {
  name: "App",
  components: {
    NavigationBar,
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%; /* 确保占据全宽 */
}
</style>
